package com.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.dao.IndexDao;
import com.po.ClassPO;
import com.po.IndustryNewsInfoPO;
import com.po.JobInfoPO;
import com.po.PictureInfoPO;
import com.po.StudentInfoPO;

@Controller
public class IndexAction {
	@Autowired
	private IndexDao indexDao;

	private List<ClassPO> listClassInfo;
	private List<StudentInfoPO> listStudentInfo;
	private List<IndustryNewsInfoPO> listNewsInfo;
	private List<PictureInfoPO> listPictureInfo;
	private List<JobInfoPO> listJobInfo;
	
	/**
	 * 页面回显数据
	 * 
	 * @return
	 */
	public String show() {
		// 查找开班信息
		listClassInfo = indexDao.findClassInfo();
		// 查找学员风采信息
		listStudentInfo = indexDao.findStudentInfo();
		// 查找行业动态的新闻
		listNewsInfo = indexDao.findNewsInfo();
		// 查找实训图片地址
		listPictureInfo = indexDao.findPictureInfo();
		// 查找页面招聘信息
		listJobInfo = indexDao.findJobInfo();
		return "show";

	}

	public List<JobInfoPO> getListJobInfo() {
		return listJobInfo;
	}

	public void setListJobInfo(List<JobInfoPO> listJobInfo) {
		this.listJobInfo = listJobInfo;
	}

	public List<ClassPO> getListClassInfo() {
		return listClassInfo;
	}

	public void setListClassInfo(List<ClassPO> listClassInfo) {
		this.listClassInfo = listClassInfo;
	}

	public List<StudentInfoPO> getListStudentInfo() {
		return listStudentInfo;
	}

	public void setListStudentInfo(List<StudentInfoPO> listStudentInfo) {
		this.listStudentInfo = listStudentInfo;
	}

	public List<PictureInfoPO> getListPictureInfo() {
		return listPictureInfo;
	}

	public void setListPictureInfo(List<PictureInfoPO> listPictureInfo) {
		this.listPictureInfo = listPictureInfo;
	}

	public List<IndustryNewsInfoPO> getListNewsInfo() {
		return listNewsInfo;
	}

	public void setListNewsInfo(List<IndustryNewsInfoPO> listNewsInfo) {
		this.listNewsInfo = listNewsInfo;
	}

}
